home *** CD-ROM | disk | FTP | other *** search
/ Super CD / Super CD.iso / programs / pb / install.bat < prev    next >
Encoding:
DOS Batch File  |  1994-06-25  |  4.0 KB  |  173 lines

  1. @echo off
  2. if x%1 == x goto usage
  3. if %1 == help goto help
  4. if not x%2 == x goto have2
  5. %0 %1 \PB
  6.  
  7. :add
  8. %0 %1: %2 NOWAIT
  9.  
  10. :have2
  11. if x%3 == xNOWAIT goto nowait
  12. if not x%3 == x goto usage
  13.  
  14. echo Please wait . . .
  15. :nowait
  16.  
  17. if %1 == a goto add
  18. if %1 == A goto add
  19. if %1 == b goto add
  20. if %1 == B goto add
  21. if %1 == c goto add
  22. if %1 == C goto add
  23. if %1 == d goto add
  24. if %1 == D goto add
  25. if %1 == e goto add
  26. if %1 == E goto add
  27. if %1 == f goto add
  28. if %1 == F goto add
  29. if %1 == g goto add
  30. if %1 == G goto add
  31. if %1 == h goto add
  32. if %1 == H goto add
  33. if %1 == i goto add
  34. if %1 == I goto add
  35. if %1 == j goto add
  36. if %1 == J goto add
  37. if %1 == k goto add
  38. if %1 == K goto add
  39. if %1 == l goto add
  40. if %1 == L goto add
  41. if %1 == m goto add
  42. if %1 == M goto add
  43. if %1 == n goto add
  44. if %1 == N goto add
  45. if %1 == o goto add
  46. if %1 == O goto add
  47. if %1 == p goto add
  48. if %1 == P goto add
  49. if %1 == q goto add
  50. if %1 == Q goto add
  51. if %1 == r goto add
  52. if %1 == R goto add
  53. if %1 == s goto add
  54. if %1 == S goto add
  55. if %1 == t goto add
  56. if %1 == T goto add
  57. if %1 == u goto add
  58. if %1 == U goto add
  59. if %1 == v goto add
  60. if %1 == V goto add
  61. if %1 == w goto add
  62. if %1 == W goto add
  63. if %1 == x goto add
  64. if %1 == X goto add
  65. if %1 == y goto add
  66. if %1 == Y goto add
  67. if %1 == z goto add
  68. if %1 == Z goto add
  69.  
  70. if %0 == a:install.bat goto ona
  71. if %0 == A:install.bat goto ona
  72. if %0 == b:install.bat goto onb
  73. if %0 == B:install.bat goto onb
  74. goto doit
  75.  
  76. :ona
  77. a:
  78. goto gotd
  79.  
  80. :onb
  81. C]:
  82. goto gotd
  83.  
  84. :doit
  85. if exist pb.pgm goto gotd
  86. echo  
  87. echo     You must cd to this install program's location before running
  88. echo     install.  Do this in two steps.  First, move to the correct drive.
  89. echo     For instance, if the install program is on a floppy in drive A:,
  90. echo     type:
  91. echo  
  92. echo                    A:
  93. echo  
  94. echo     and press Enter.  The second step is to move to the correct
  95. echo     directory within the drive.  For instance, if the install program
  96. echo     is in the root directory of the floppy, type:
  97. echo  
  98. echo                    cd \
  99. echo  
  100. echo     and press Enter.  Once you've moved to the correct drive and
  101. echo     directory, run the install program once again by typing:
  102. echo  
  103. echo                    install
  104. echo  
  105. goto end
  106.  
  107. :gotd
  108. md %1%2 > nul
  109. copy *.* %1%2 > nul
  110. if not exist %1%2\pb.pgm goto error
  111.  
  112. md %1%2\tutorial > nul
  113. copy tutorial\*.* %1%2\tutorial > nul
  114. if not exist %1%2\tutorial\tutorial.ovr goto error
  115.  
  116. %1
  117. cd %2
  118.  
  119. echo  
  120. echo  
  121. echo  
  122. echo  
  123. echo     The installation is finished.  The Desktop has been installed in the
  124. echo     directory %1%2.  To run the Desktop, type:
  125. echo  
  126. echo              pb
  127. echo  
  128. echo     and press Enter.
  129. echo  
  130. goto end
  131.  
  132. :error
  133. echo  
  134. echo     Couldn't install the Desktop.  Read the instructions below to make
  135. echo     sure you're using this install program correctly.
  136.  
  137. :usage
  138. echo  
  139. echo     To use this install program, type:
  140. echo  
  141. echo              install C
  142. echo  
  143. echo     and press Enter.  The Desktop will be installed in the \PB
  144. echo     directory on drive C.  For instance, in the case of the above
  145. echo     example, the Desktop would be installed to C:\PB.  If you want to
  146. echo     install to a different drive, just use its drive letter in place
  147. echo     of the C in the above command.
  148. echo  
  149. echo  
  150. echo     To install to a directory with a name other than \PB, type:
  151. echo  
  152. echo              install help
  153. echo  
  154. echo     and press Enter.  This will display more instructions.
  155. echo  
  156. goto end
  157.  
  158. :help
  159. echo  
  160. echo     To install the Desktop to a directory of your choice, type:
  161. echo  
  162. echo              install C \DESKTOP
  163. echo  
  164. echo     and press Enter.  The Desktop will be installed in the \DESKTOP
  165. echo     directory on drive C.  For instance, in the case of the above
  166. echo     example, the Desktop would be installed to C:\DESKTOP.  Substitute
  167. echo     the drive and directory you want for C and \DESKTOP when typing
  168. echo     the command.
  169. echo  
  170. echo     Be sure to leave a space between the drive and the directory name.
  171. echo  
  172. :end
  173.